import request from '@/utils/request'

// 查询题库题目关联列表
export function listBankQuestion(query) {
  return request({
    url: '/exam/bankQuestion/list',
    method: 'get',
    params: query
  })
}

// 查询题库题目关联所有列表
export function listAllBankQuestion(query) {
  return request({
    url: '/exam/bankQuestion/listAll',
    method: 'get',
    params: query
  })
}

// 查询题库题目关联详细
export function getBankQuestion(id) {
  return request({
    url: '/exam/bankQuestion/getInfo/' + id,
    method: 'get'
  })
}

// 新增题库题目关联
export function addBankQuestion(data) {
  return request({
    url: '/exam/bankQuestion/add',
    method: 'post',
    data: data
  })
}

// 修改题库题目关联
export function updateBankQuestion(data) {
  return request({
    url: '/exam/bankQuestion/edit',
    method: 'post',
    data: data
  })
}

// 删除题库题目关联
export function delBankQuestion(id) {
  return request({
    url: '/exam/bankQuestion/remove/' + id,
    method: 'get'
  })
}
